package com.example.demo.process;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Data
@Component
@ConfigurationProperties(CustomConfiguration.PREFIX)
@Slf4j
public class CustomConfiguration {

    public static final String PREFIX = "custom-configuration";

    private boolean enable;
    private String something;

    public CustomConfiguration() {
        log.info(" - - - - - - CustomConfiguration Init - - - - - - ");
    }
}
